/**
 * @File name : PermissionServiceImpl.java
 * @Description : 
 * @Creator : haifeng17
 * @CreateTime : Mar 31, 2017 3:51:31 PM
 * @Version : 1.0
 * @Update records:
 *      1.1 Mar 31, 2017 by haifeng17: 
 *      1.0 Mar 31, 2017 by haifeng17: Created 
 * All rights served : XXX CORP.
 */
package com.ent.app.bms.service.system.impl;

import java.util.Set;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.ent.app.bms.dao.mapper.SysPermissionMapper;
import com.ent.app.bms.service.system.PermissionService;

@Service("permissionService")
public class PermissionServiceImpl implements PermissionService{

    @Resource
    private SysPermissionMapper permissionDao;
    @Override
    public Set<String> findPermCodesByRoleName(String roleName) {
        return permissionDao.selectPermCodesByRoleName(roleName);
    }
    @Override
    public Set<String> findPermCodesByusername(String username) {
        return permissionDao.selectPermCodesByUserName(username);
    }
    
}
